<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>控制台</title>
<link href="../tablecloth/tablecloth.css" rel="stylesheet"
	type="text/css" media="screen" />
<script type="text/javascript" src="../Js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../Js/haidao.offcial.general.js"></script>
<script type="text/javascript" src="../Js/select.js"></script>
<script type="text/javascript" src="../Js/haidao.validate.js"></script>
<script type="text/javascript">
	var uid = 0;
</script>
<style>
.del {
	background-color: #C00;
	color: #FFF;
	border-radius: 5px;
	line-height: 20px !important;
	padding: 1px 6px;
}
</style>
</head>

<body>
	<div>
		<div class="view-sidebar">
			<div class="sidebar-content" id="sidebar"></div>
		</div>
		<div class="view-product">
			<div class="message-manage">
				<div class="manage-record margin-lr">
					<div class="select-table sel_small"></div>

					<div class="clear"></div>
					<div class="offcial-table margin-top clearfix">
						<div class="tr-th clearfix">
							<form id="itemsForm" action="" method=get>
								<table >
									<tr>
										<td align="left"><span>管理员名称：${mapManager['manger']}</span></td>
										<input type="hidden" name="id" id="id" value="${mapManager['id']}" />
										<input type="hidden" name="pwd" id="pwd" value="${mapManager['pwd']}" />
									</tr>
									<tr>
										<td align="left"><span class="redtxt">密码： </span> 
										<input type="text" name="password" class="password" value="${mapManager['pwd']}"></td>


									</tr>
								</table>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<td align="left"><input type="button" value="提交" class="btn btn-success" onclick="addform()"></td>
								</table>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	function addform(){
		$.ajax({ type : 'post',
					url : "<%=request.getContextPath()%>/supervise/getManagerU.do",
				data : $("#itemsForm").serialize(),
				success : function(data) {
					if (data == 1) {
						alert("修改成功");
					} else if (data = 0) {
						alert("用户插入失败");
					} else {
						alert("手机号已存在");
					}
				}
			});
		}
	</script>

</body>

</html>